package com.ruoyi.sgsc.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车对象 sg_shoppingcarts
 * 
 * @author wy
 * @date 2024-09-29
 */
public class shoppingcarts extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购物车id */
    private Long cartId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 购物车创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购物车创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date CreatedAt;

    public void setCartId(Long cartId) 
    {
        this.cartId = cartId;
    }

    public Long getCartId() 
    {
        return cartId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCreatedAt(Date CreatedAt) 
    {
        this.CreatedAt = CreatedAt;
    }

    public Date getCreatedAt() 
    {
        return CreatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cartId", getCartId())
            .append("userId", getUserId())
            .append("CreatedAt", getCreatedAt())
            .toString();
    }
}
